package com.share.finance.risk.rules.model.translate.ifs;

import io.swagger.annotations.ApiParam;
import lombok.Data;

import java.util.List;

/**
 * 表达式左边或者右边的描述
 */
@Data
public class ParamItem {
    @ApiParam("取值 var 变量,const 常量, fn 函数")
    private String type;

    @ApiParam("type为const时,该参数有效")
    private String value;

    @ApiParam("type为var或者fn时,该值为函数名或者变量名字")
    private String name;

    //值来源是输入还是输出  input还是output
    private String paramType;

    //数据类型 String,integer
    private String dataType;

    //备注
    private String description;


    @ApiParam("type为fn时,该值为函数的描述")
    private List<ParamItem> parameters;

    @ApiParam("type为fn时,参数数值格式")
    private String paramsType;

    @ApiParam("type为fn时,函数返回格式")
    private String returnType;
}
